function content0LoadFunction() {
	x_getEU(eventUpdatesObj.returnGetEU);
	
	var euDateBox = new Ext.form.DateField({
	    name: 'euDate',
	    width:150,
	    allowBlank:false,
	    format: 'm/d/Y'
	});
	
	euDateBox.applyTo('euDate');
}

function content1LoadFunction() {
	x_getFiles(fileObj.returnGetFiles);
}

var eventUpdatesObj = {
	returnGetEU : function (string) {
		var stringArray = string.split('|');
		var euDate  = stringArray[0];
		var content = stringArray[1];
		var active  = stringArray[2];
		
		$('euDate').value = euDate;
		if (active == 1) {
			$('euActive').checked = true;
		}
		tinyMCE.getInstanceById('euContent').getBody().innerHTML = content;
	},
	returnGetEU2 : function () {
		// Do nothing...
	},	
	saveEU : function () {
		var euDate  = $('euDate').value;
		var content = tinyMCE.getContent('euContent');
		if ($('euActive').checked == true) {
			var active = 1;
		} else {
			var active = 0;
		}
		x_saveEU(euDate,content,active,eventUpdatesObj.returnGetEU2);
		$('formStatus').className = 'successMessage';
		$('formStatus').innerHTML = 'Events and Updates have been saved.';
		Effect.Fade('formStatus', {delay: 1, duration: 3});
	}
}

var siteCategoriesObj = {
	
}

var fileUploadObj = {
	
}

var fileObj = {
	returnGetFiles : function (string) {
		$('fileContainer').innerHTML = string;
	},
	returnDeleteFile : function(fID) {
		var fileRow = 'fileRow'+fID;
		Effect.Fade(fileRow, {delay: .5, duration: 1});
	}
	
}
